package com.huanqi.api;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        TextView aaaaaa=findViewById(R.id.aaaaaaaaaaaa);
        aaaaaa.setOnClickListener(v -> {
            ApiDouBan.init(1652587).message(new DouBanMovieMessage() {
                @Override
                public void callback(MovieBean movieBean) {
                    runOnUiThread(new Runnable() {
                        @Override
                        public void run() {
                            aaaaaa.setText(movieBean.toString());
                        }
                    });
                }
            });
        });


    }
}